package com.adbj.stringtest;

public class StringTest {
    public static void main(String[] args) {

        String str=new String("1");
        String str3=str.intern();
        String str2="1";

        System.out.println((str==str3)+";;;;;;;"+(str2==str3)+";;;;"+ (str==str2));
        System.out.println(str.equals(str3)+";;;;;;;"+str2.equals(str3)+";;;;"+ str.equals(str2));


        String s1="1";
        String s333=s1+str2;
        System.out.println(s1=="1");


        Object o=new Object();
        Integer i=1;

        System.out.println(null instanceof Object);

        int i1=100;
        int i2=100;

        int i3=200;
        int i4=200;

        System.out.println(i1==i2);
        System.out.println(i3==i4);
        Object a=10 ;
        Object b=10L;
        Object c=10.0;
        System.out.println(a);
        System.out.println(c);
        System.out.println(b);
    }
}
